<template>
    <div class="content">
        <div class="left">
            <slot name="left"></slot>
        </div>
        <div class="center">
            <slot name="center"></slot>
            <slot :name="name"></slot>
        </div>
        <div class="right">
            <slot name="right"></slot>
        </div>
    </div>
</template>

<script>
export default {
    props: ['name']
}
</script>

<style>
.content {
    display: flex;
}
.left , .right {
    width: 44px;
    background-color: #CCC;
}
.center {
    background-color: yellow;
    flex: 1;
}
</style>